﻿using B.S.DataBase.MyProject.ErrorCode;
using MediatR;
using SqlSugar;

namespace MedicalPCTerminal.Write.API.Appcation.Commands.居民档案PC端
{
    public class AddResidentFilesCommand:IRequest<APIResult<object>>
    {
        /// <summary>
        /// 单据编码 主键 居民档案表唯一标识
        /// </summary>
        [SugarColumn(IsIdentity = true, IsPrimaryKey = true)]
        public int ResidentFiles_Id { get; set; }

        /// <summary>
        /// 姓名
        /// </summary>
        public string ResidentFiles_Name { get; set; }

        /// <summary>
        /// Sex  女false  男true
        /// </summary>
        public bool? Sex { get; set; } = true;

        /// <summary>
        /// 年龄
        /// </summary>
        public int? Age { get; set; }

        /// <summary>
        /// 身份证号
        /// </summary>
        public string? IdCard { get; set; }

        /// <summary>
        /// 联系电话
        /// </summary>
        public string? Phone { get; set; }

        /// <summary>
        /// 出生日期
        /// </summary>
        public DateTime Birthday { get; set; }

        /// <summary>
        /// 家庭地址
        /// </summary>
        public string? Address { get; set; }

        /// <summary>
        /// 婚姻
        /// </summary>
        public string? Marriage { get; set; }

        /// <summary>
        /// 血型
        /// </summary>
        public string? BloodType { get; set; }

        /// <summary>
        /// 参保情况
        /// </summary>
        public string? InsuredSituation { get; set; }

        /// <summary>
        /// 职业
        /// </summary>
        public string? job { get; set; }

        /// <summary>
        /// 文化程度
        /// </summary>
        public string? Education { get; set; }

        /// <summary>
        /// 是否吸烟
        /// </summary>
        public bool? IfSmoke { get; set; } = true;

        /// <summary>
        /// 是否戒烟者
        /// </summary>
        public bool? IfQuitSmoke { get; set; } = true;

        /// <summary>
        /// 是否被动吸烟者
        /// </summary>
        public bool? IfPassiveSmoke { get; set; } = true;

        /// <summary>
        /// 是否饮酒
        /// </summary>
        public bool? IfDrinkWine { get; set; } = true;

        /// <summary>
        /// 是否运动 0:充分  1：中等  2：不足
        /// </summary>
        public int? IfSport { get; set; } = 0;

        /// <summary>
        /// 高血压知晓情况  0:患有高血压   1：血压正常   2：从未测量
        /// </summary>
        public int? Hypertension { get; set; } = 0;

        /// <summary>
        /// 糖尿病知晓情况  0：患有糖尿病  1：血糖正常  2：从未测量
        /// </summary>
        public int? Diabetes { get; set; } = 0;

        /// <summary>
        /// 身高
        /// </summary>
        public double? Height { get; set; }

        /// <summary>
        /// 体重
        /// </summary>
        public double? Weight { get; set; }

        /// <summary>
        /// BMI
        /// </summary>
        public double? BMI { get; set; }

        /// <summary>
        /// 腰围
        /// </summary>
        public double? Waistline { get; set; }

        /// <summary>
        /// 收缩压
        /// </summary>
        public double? SystolicPressure { get; set; }

        /// <summary>
        /// 舒张压
        /// </summary>
        public double? SiastolicPressure { get; set; }

        /// <summary>
        ///空腹血糖
        /// </summary>
        public double? FastingBloodGlucose { get; set; }
    }
}
